class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.text :username, null: false
      t.text :password, null: false
      t.text :firstname
      t.decimal :totalmoney, :precision => 8, :scale => 2
      t.integer :rank
      t.timestamp :datereg, null: false
      t.text :email, null: false
      t.timestamp :active, null: false

      t.timestamps
    end
  end
end
